Update debug + scoring function