Adds average rating calculation.