Added code to total up each region