Broke out state machine