Preparations for merge.