Changed the way getprompt works