Update debug script