Setting up totals to be emailed.