Added a rounding to generation of the sums for each category.