Add method to calculate system totals.