Added totalSum