Performance tuning, bug fix for commonScores == 0