   // Connect to the network
   //==================================================
   // attempt to connect to the Wi-Fi network:
-  while (status != WL_CONNECTED) {
+  while (status != WL_CONNECTED)
+  {
     Serial.print("Connecting to ");
     Serial.println(ssid);
     // Connect to WPA/WPA2 network. Change this line if using open or WEP network:

  relayStatus = status;
}

void printWifiStatus() {
  // print the SSID of the network you're attached to:
  Serial.print("SSID: ");
  Serial.println(WiFi.SSID());

  flashxTimes(2);

  //we just started, are we supposed to have the relay on at this time?
  if (isInOnPeriod())
  {
    //turn on the relay
    Serial.println("\nWhoops, we're supposed to be on!");
    setRelay(true);
  }
}

void loop()
{

  //Variable used to store button status as its read
  int buttonState;
