Intermittent molecular shuttle as a binary switch.