Now uses the yesno function for exit confirmation