Added score calculation.