Added solenoid functionality