Add debug lines, and temporarily disable analyse_merge_nodes() because it is broken.