Added function to control solenoid