Add a basic homemade fsm