Improve merging.