New version of merge implemented.