Feature/state transition machine

I suppose this has to be configurable. Am I missing something?