Added a confirmation dialogue.