Store sum instead of average

Thanks @cstobey for this!