Added totals calculation for adding items