Single function for prompt