   }
 }
 
-void mqttPublishData(bool publishInstant) {
-  // Only run when publishInterval in milliseonds exspires or publishInstant = true
+// MQTT Publish with normal or immediate option.
+void mqttPublishData(bool ignorePublishInterval) {
+  // Only run when publishInterval in milliseonds expires or ignorePublishInterval == true
   unsigned long currentMillis = millis();
-  if (currentMillis - previousMillis >= publishInterval || publishInstant == true) {
-    previousMillis = currentMillis; // save the last time this ran
+  if (currentMillis - previousMillis >= publishInterval || ignorePublishInterval == true) {
+    previousMillis = currentMillis; // Save the last time this ran
     // Check conenction to MQTT server
     if (mqttClient.connected()) {
       // Publish node state data
       publishNodeState();
 
-      // New JSON data method
+      // JSON data method
       StaticJsonBuffer<json_buffer_size> jsonBuffer;
       JsonObject& root = jsonBuffer.createObject();
       // INFO: the data must be converted into a string; a problem occurs when using floats...

  // Check the status and do actions
  checkState();
  // Publish MQTT
  mqttPublishData(false);
  //Call on the background functions to allow them to do their thing.
  yield();
  // Check for Over The Air updates

const char* subscribeSetCoolerTemperature = secret_subscribeSetCoolerTemperature; //

// Publish
const char* publishLastWillTopic = secret_publishLastWillTopic; //

const char* publishSensorJsonTopic = secret_publishSensorJsonTopic;
const char* publishStatusJsonTopic = secret_publishStatusJsonTopic;
