Added averageData