Changed state machine