   if (millis() > lastPowerCheck + POWER_CHECK_FREQUENCY) {
     if (relayOn && relayOffWhenPowerDown && !computerOn) {
       //It looks like we're shutdown, but lets make sure.
-      delay(500);
+      delay(100);
       if (digitalRead(POWER_LED) == 0) {
         //OK then, power off Relay.
         delay(2000);


// How often to check for power off state
unsigned long lastPowerCheck = millis();
unsigned long whenPowerOn = millis();
unsigned long whenRelayOn = millis();
#define POWER_CHECK_FREQUENCY 10000

// WiFi parameters

  }
  // Check status to update variables
  computerOn = digitalRead(POWER_LED);
  delay(1);
}

void initWifi() {
