2014-12-30: Bug fix: totals now sum correctly according to settings.