Fixed prompts function.