Added scheduler functionality to update the state of the orders to late
or overdue.