To DO completed part 1
Final mergeRMD command