Implement avg by request