Started with state machine