Adding totals option