Added AverageOf Function