Insert debug code