Adding some debugging for onConfirm handlers