Clean the mdp class