Alternative implementation of adding sums to last row of a table.