Implementing the MDTM command