Fix up sum_totals and gist_graph_data so that they do not have to be modified as often