Add state machine to order