Added another genrealized method for ratings calculations.