Implemented the TOF auto/manual switch.