Begin integrating state machine.