Modified FSM