Add logic to add summary results to calculate totals