Initial working FSM