   smartthing.shieldSetLED(0, 0, 1);
   trafficCop=0;
   scheduleUpdate();
+  schedulePumpUpdate();
 }
   
 void timeToUpdate() {
   scheduleUpdate();
+  schedulePumpUpdate();
 }
 
 int maxvalue () {

  t.stop(stationTimer[trafficCop]); // Kill any previously started timers.
  stationTimer[trafficCop] = t.after (stationTime[trafficCop],toggleOff);
  scheduleUpdate();
}
void toggleOff() {
  digitalWrite(relay[trafficCop], relayOff);

  }  
  trafficCop=0; //ready to check queue or watch for new commmonds
  scheduleUpdate();
  schedulePumpUpdate();
}

//added allOff as requirement of SmartThings switch capability.  
