Changes to Prompt function