Added simple fsm system