Switching from #define to static const.
Switching to bool for the solenoid.