Adds implementation of metricSum