Made mprompt dynamic doMPrompt()