Add a way to calculate the mean of the values in a particular field