Work on the FSM