Added a confirm dialogue.