   // Initi some global variables
   g_last_print = millis();
   
-  // Start Web Server
-  //Serial.println("Starting WebServer");
-  system(START_ACCESS_POINT_SCRIPT_FULL_PATH);
-
   // Initialize HW and JSON protocol code
   //Serial.println("Initilize Hardware");
 //  initBoardState(); // Assure a state
   initBoardStateFromFile(BOARD_CONFIG_FILE_FULL_PATH); // Replace the state with the file, if available
-  //delay(1000);
+  delay(1000);
+
+  // Start Web Server
+  //Serial.println("Starting WebServer");
+  system(START_ACCESS_POINT_SCRIPT_FULL_PATH);
+  delay(1000);
 
   //Serial.println("Starting WebSocket");
   initWebsocket();  

  
  // Parse file
  aJsonObject *poMsg = aJson.parse(sJsonFile);
//  Serial.println("Parse File");
  
  if( poMsg )
  {  

    
  //         digitalWrite(13, LOW );
     // Serial.println("Writing board state to file");
        writeBoardStateToFile(BOARD_CONFIG_FILE_FULL_PATH);
      // g_iWriteToFile=1;
    
//        system("shutdown -r now");
