Refactors confirmation.