Small progress on merge routine