Move "askConfirmation" into a helper file