Basic solenoid implementation.