Added getTotals