Only print and perform something if the user presses ok.