DoMerge() helper function added back in