Use of dialog to capture user input.