Added prompt function.