Reverted solenoid code.