Updated MMD tool runscript