Added "final" to mapSum.