Add planeAverage calculation