Added copyMerge to merge tmp files.