Modification to Confirm function