Refactored confirm