Removed map layer from sum function.