First working prototype of sosoStateMachine.