Improve prompt functions.