Added printing totals, half working