createMDName function created.