Added FSM for camera switching