Updated how order totals are calculated to be more efficient