Update the totals