Added implementation to calculate ongoing averages