Added simplefsm