     // When a button has been pressed, go and
     // change the setpoint
     if ((digitalRead(incrSetPointPin) == LOW) || \
-	(digitalRead(decrSetPointPin) == LOW))
+    	(digitalRead(decrSetPointPin) == LOW))
       {
-	// Figure out by how much to change setpoint
-	// If buttons pressed down, then increment a lot
-	int increment;
-	if (pressCount > 10) {
-	  increment = 10;
-	}
-	else {
-	  increment = 1;
-	}
-
-	// Now increment / decrement according to
-	// which button has been pressed
-	if(digitalRead(incrSetPointPin) == LOW) {
-	  setPoint += increment;
-	}
-	if(digitalRead(decrSetPointPin) == LOW) {
-	  setPoint -= increment;
-	}
-	pressCount++;
+    	// Figure out by how much to change setpoint
+    	// If buttons pressed down, then increment a lot
+    	int increment;
+    	if (pressCount > 10) {
+    	  increment = 10;
+    	}
+    	else {
+    	  increment = 1;
+    	}
+
+    	// Now increment / decrement according to
+    	// which button has been pressed
+    	if(digitalRead(incrSetPointPin) == LOW) {
+    	  setPoint += increment;
+    	}
+    	if(digitalRead(decrSetPointPin) == LOW) {
+    	  setPoint -= increment;
+    	}
+    	pressCount++;
       }
     else {
       pressCount = 0;
     }
 
     // Figure out whether you need cooling or not
-    // Assume you can cool and then check whether 
+    // Assume you can cool and then check whether
     // anything forbids you to cool.
     // After that check whether you really need to
     // cool

    lcd.print("                ");
    lcd.setCursor(0,1);
    if (beenCooling) {
      if (starting) {
	lcd.print("Starting ");
	lcd.print(maxStarterMeasurement);
      }
      else{
	lcd.print("Cooling ah");
	lcd.print(starterMeasurement);
	//writeCountdown((currentMillis - coolingStarted)/1000, 5, 11, 1);
      }
    }
    else {
      if (inGracePeriod) {
	lcd.print("Cannot cool");
	writeCountdown((gracePeriodStart + gracePeriod - \
			currentMillis) / 1000, 5, 11, 1);
      }
      else if (inCooldownPeriod)
      {
	lcd.print("Too hot ah");
	writeCountdown((cooldownPeriodStart + cooldownPeriod - \
			currentMillis) / 1000, 5, 11, 1);
      }
      else if (errorDetected) {
	lcd.print("Retreat!Retreat!");
      }
      else {
	lcd.print("Cool enough alr!");
      }
    }
    previousMillis = currentMillis;

  } // End main loop if
}


    if (inCooldownPeriod) {
      // If the grace period is over reset boolean
      if (currentMillis - cooldownPeriodStart > cooldownPeriod) {
    	inCooldownPeriod = LOW;
      }
    }

    // Temperature measurement
    int temperature = getTemperature();
