Update debug code