Thanks, Nils!
I don't need to save anything, so my routine can be much simpler. But where do you exit the program? Shouldn't there be an "abort" somewhere?