Added a scoring formula.