Changed Logic for Regulator/pump control