Renamed proximitySwitch -> rangingSwitch; made logging more readable