Config state machine