Cleaning up md.