Implement generateOrders feature