Added comments and changed the type of consistentOrder from Boolean to boolean