Altered to cater for prompts in non file system providers