   {
     Serial.print("Empty file: ");
     Serial.println(_sFullFilePath);
-  }
+    
+    // The file is empty for some reason. Let's use the standard init function
+    initBoardState();
+    return;
+  }
+  /*
   else
   {
     Serial.println(sJsonFile); 
   }
+  */
 //  Serial.println("File Close");
   fclose(fp);
   

int g_iCatNumber = 0;
int g_iChangeSsid = 1;
int g_iWriteToFile = 1;

void loop()
{

// TESTING
  getSerialCommand(); 
  
  if (millis() - last_print > 1000)
  {
    // Save board state every ~1 sec
//   writeBoardStateToFile(BOARD_CONFIG_FILE_FULL_PATH);
      
    // Flush serial buffer
    //Serial.flush();  
      
    last_print = millis();
  }


    aJsonObject *pJsonConnections = aJson.getObjectItem(poMsg, "connections");
    if( pJsonConnections )  // Check if there is pin info
    {
//       Serial.println("Processing Connections");
      procConnMsg( pJsonConnections );        
    }
    else
