Adding newOrderFunctionality