Changes required for using lever switches for endstops