Add a cleanup function for MDs.
13 files changed