     nukeCookie(i);
   }
 
-
-
+  //
+  //  Handle EEPROM logic for persistant settings (if the first 5 bytes of
+  //  EEPROM memory are not all set to 42, then this is a completely
+  //  unitialized device)
+  //
+  
+  EEPROM.begin(400);
+  int a = 0;
+  for(int i = 0; i < 6; i++)
+  {
+    a = EEPROM.read(i);
+    if(a != 42)
+    {
+      debug_out("Virgin Module");
+      init_eeprom_memory();
+      break;
+    }
+  }
+
+  read_eeprom_memory();
+
+/*
   //public_wifi_ssid = "SuperMOO";
   public_wifi_ssid = "NoWorky";
   public_wifi_password = "VeryS1lly";

  {
    if(now - cookies[i].time > 60 * 1000 * 8 && cookies[i].valid == true)	// 8 minute cookie timeout
    {
       Serial.println("Nuked a cookie");
       nukeCookie(i);
    }
  }

  {
    page += " checked";
  }
  page += "/><br/>";
  page += "<label for='muxport'>NMEA Port: </label>";
  page += "<input type='number' name='muxport' length='5' maxlength='5' value='" + String(nmea_mux_port) + "' ><br/>";
  page += "<label for='lname'>Device Login: </label>";
