Add confirm function.