Added absolute position for the switch