The start of a working state machine