AI adding debug code