  * Low Level EEPROM
  *======================================================================================
  */
-void EEPROMwrite64(int16_t eepromAddress, int64_t* value) {
-  int32_t* source = (int32_t*) value;
+void EEPROMwrite64(uint16_t eepromAddress, uint64_t* value) {
+  uint32_t* source = (uint32_t*) value;
   
   EEPROM.writeLong(eepromAddress, *source);
   EEPROM.writeLong(eepromAddress+4, *(source+1));
 
 }
 
-int64_t EEPROMread64(int16_t eepromAddress) {
-  int32_t buf[2];
+uint64_t EEPROMread64(uint16_t eepromAddress) {
+  uint32_t buf[2];
   
   buf[0] = EEPROM.readLong(eepromAddress);
   buf[1] = EEPROM.readLong(eepromAddress+4);
   
-  return *((int64_t*) buf);
-  
-}
+  return *((uint64_t*) buf);
+  
+}

 */
void serialEvent() {
  //Read the task that should be performed
  int8_t task = read8();
  
  //Read the length of the complete transmission
  int16_t transmissionLength = read16();
  writeToSerial(&transmissionLength, 2);
  
  //DEBUGGING REMOVE

  if(EEPROM.read(EEPROM_INITIALISED_FLAG) != 42) {
    Serial.println("INIT");
     //Set the current profile id to zero
     uint64_t v = 0;
     EEPROMwrite64(EEPROM_CURRENT_PROFILE_ID, &v);
     
     //Set the led Count to 60
