Added the ability to have totals on grids