Added a wait command, and made dual action solenoid command more
versatile