Added totals to output