Updated rating calculation.