Implemented order status and state model