Moved the state machine around.