New scoring function.