Minor update to scoring function