Added support for custom prompts, and restoring them if thef have been set previously