Modified setPrompt helper.
5.0.4