Deeper Integration of average calculation.