       digitalWrite(pin4Relay, relayOn);
       pin4PumpStatus = "on";
   }
+  schedulePumpUpdate();
 }
 
 void timeToUpdate() {

      digitalWrite(pin4Relay, relayOff);
      pin4PumpStatus="off";
  }
}

void pumpOn() {

/**
* 
 ****************************************************************************************************************************
 * Irrigation Controller 16 Zones With Options for Master Valve and Pump  v3_1
 * Simple, elegant irrigation controller that takes advantage of the cloud and SmartThings ecosystem
 * Arduino MEGA with SmartThings Shield  and 16 relay modules
 * Works by receiving irrigation run times from the Cloud and then builds a queue to execute
