       delay(100);
       return;
     }
-    Serial.println("WiFi connected");
+    
   }
 
   if (!client.connected()) {

    }
  }

  delay(100);
}

   int start, end;
   uint8_t R, G, B;
  
  if (0 == strncmp(FADE, messageBuffer.c_str(), strlen(FADE))) {
    CommandEntry* command = new CommandEntry;
    if (extractRangeAndTarget(messageBuffer.c_str(), 
                              &command->range_start, 
                              &command->range_end, 
                              strip.numPixels(), 
                              &command->R,
                              &command->G,
                              &command->B)) {
      command->command = FADE_COMMAND;
      char* next = strtok(nullptr," ");
      command->duration = atoi(next);   
      command->next_command = nullptr;                       
      enqueueCommand(command);
      Serial.println("Fade enqueued");
    } else {
      delete command;
    }
  } else if (0 == strcmp(messageBuffer.c_str(), OFF)) {
    clearQueue();
    for(uint16_t i=0; i <strip.numPixels(); i++) {
      strip.setPixelColor(i, strip.Color(0,0,0));
    }
    setCurrent(0, 0, 0);
  } else if ((0 == strncmp(RANGE, messageBuffer.c_str(), strlen(RANGE))) ||
             (0 == strncmp(CLEAR_AND_RANGE, messageBuffer.c_str(), strlen(CLEAR_AND_RANGE)))) {
    clearQueue();
    if (0 == strncmp(CLEAR_AND_RANGE, messageBuffer.c_str(), strlen(CLEAR_AND_RANGE))) {
      for(uint16_t i=0; i <strip.numPixels(); i++) {
        strip.setPixelColor(i, strip.Color(0,0,0));
      }
      setCurrent(0, 0, 0);
    }

    if (extractRangeAndTarget(messageBuffer.c_str(), &start, &end, strip.numPixels(), &R, &G, &B)) {
