Enabled the republish all MDL and also included necessary imports such as cleanup. and time. for the function to work