 
 unsigned int sendTCPPacket(LifxPacket &pkt) {
 
-  if (DEBUG) {
-    Serial.print(F("+TCP "));
-    printLifxPacket(pkt);
-    Serial.println();
-  }
+  debug_print(F("+TCP "));
+  printLifxPacket(pkt);
+  debug_println();
 
   byte TCPBuffer[128]; //buffer to hold outgoing packet,
   int byteCount = 0;

        kel = word(request.data[8], request.data[7]);

        for(int i=0; i<request.data_size; i++){
          Serial.print(request.data[i], HEX);
          Serial.print(SPACE);
        }
        Serial.println();

        setLight();
      }

  if (EEPROM.read(EEPROM_CONFIG_START) == EEPROM_CONFIG[0]
      && EEPROM.read(EEPROM_CONFIG_START + 1) == EEPROM_CONFIG[1]
      && EEPROM.read(EEPROM_CONFIG_START + 2) == EEPROM_CONFIG[2]) {
    debug_println(F("Config exists in EEPROM, reading..."));
    debug_print(F("Bulb label: "));

    for (int i = 0; i < LifxBulbLabelLength; i++) {
      bulbLabel[i] = EEPROM.read(EEPROM_BULB_LABEL_START + i);
      debug_print(bulbLabel[i]);
    }

    debug_println();
    debug_print(F("Bulb tags: "));

    for (int i = 0; i < LifxBulbTagsLength; i++) {
      bulbTags[i] = EEPROM.read(EEPROM_BULB_TAGS_START + i);
      debug_print(bulbTags[i]);
    }

    debug_println();
    debug_print(F("Bulb tag labels: "));

    for (int i = 0; i < LifxBulbTagLabelsLength; i++) {
      bulbTagLabels[i] = EEPROM.read(EEPROM_BULB_TAG_LABELS_START + i);
      debug_print(bulbTagLabels[i]);
    }

    debug_println();
    debug_println(F("Done reading EEPROM config."));
  } else {
    // first time sketch has been run, set defaults into EEPROM
    debug_println(F("Config does not exist in EEPROM, writing..."));

    EEPROM.write(EEPROM_CONFIG_START, EEPROM_CONFIG[0]);
    EEPROM.write(EEPROM_CONFIG_START + 1, EEPROM_CONFIG[1]);
