   if (command == "pump") {
     pumpCommand(client);
   }
-  if (command == "temperature") {
+  else if (command == "temperature") {
     temperatureCommand(client);
+  }
+  else if (command == "heater") {
+    heaterCommand(client);
+  }
+  else if (command == "pid") {
+    pidCommand(client);
+  }
+  else if (command == "setpoint") {
+    setpointCommand(client);
+  }
+  else if (command == "pvalue") {
+    pvalueCommand(client);
+  }
+  else if (command == "ivalue") {
+    ivalueCommand(client);
+  }
+  else if (command == "fullstatus") {
+    fullstatusCommand(client);
   }
   else {
     int i;

  Bridge.put("dutycycle", String(value));
}

/* void heater_msg() { */
/*   /\* Serial << STATMSG << "Heater msg received" << ENDMSG; *\/ */
/*   while (cmdMessenger.available()) { */
/*     char buf[350] = {'\0'}; */
/*     cmdMessenger.copyString(buf, 350); */
/*     // Its of the form int, where int is percent */
/*     // duty cycle */
/*     setDutyCycle(atoi(buf)); */
/*   } */
/* } */

/* void setPIDonoff_msg() { */
/*   /\* Serial << STATMSG << "Set PID on off msg received" << ENDMSG; *\/ */
/*   while (cmdMessenger.available()) { */
/*     char buf[350] = {'\0'}; */
/*     cmdMessenger.copyString(buf, 350); */
/*     if (strncmp(buf, "1", 1) == 0) { */
/*       temperaturePID.SetMode(AUTOMATIC); */
/*     } */
/*     else { */
/*       temperaturePID.SetMode(MANUAL); */
/*     } */
/*   } */
/* } */

/* void getall_msg() { */
/*   /\* Serial << STATMSG << "All parameters requested" << ENDMSG; *\/ */
/*   Serial << GETALLMSG << temperature << "," << dutyCycle << "," \ */
/* 	 << setpoint << "," << temperaturePID.GetMode() \ */
/* 	 << "," << pumpIsOn << "," << pValue << "," << iValue << ENDMSG; */
/*   delay(10); */
/* } */

/* void changeSET_msg() { */
/*   /\* Serial << STATMSG << "Change in setpoint requested" << ENDMSG; *\/ */
/*   while (cmdMessenger.available()) { */
/*     char buf[350] = {'\0'}; */
/*     cmdMessenger.copyString(buf, 350); */
/*     // Its of the form int, where int is percent */
/*     // duty cycle */
/*     setSetPoint(atoi(buf)); */
/*   } */
/* } */

/* void setP_msg() { */
/*   while (cmdMessenger.available()) { */
/*     char buf[350] = {'\0'}; */
/*     cmdMessenger.copyString(buf, 350); */
/*     // Its of the form int, where int is percent */
/*     // duty cycle */
/*     setPValue(atof(buf)); */
/*   } */
/* } */

/* void setI_msg() { */
/*   while (cmdMessenger.available()) { */
/*     char buf[350] = {'\0'}; */
/*     cmdMessenger.copyString(buf, 350); */
/*     // Its of the form int, where int is percent */
/*     // duty cycle */
/*     setIValue(atof(buf)); */
/*   } */
/* }     */

void arduino_ready() {
  // In response to ping. We just send a throw-away ack to say "im alive"

void setSetPoint(int value) {
  setpoint = double(value) / 10;
  /* Serial << STATMSG << "Set setpoint to " << setpoint << ENDMSG; */
}

int getSetPoint() {
  return int(round(10 * setpoint));
}
    
void setDutyCycle(int value) {
