If there is I don't know how I would do it. Any way that I can think of to stop the vi from running still allows the for loops to execute. I suspect that this can't be avoided without rewriting my vi to avoid for loops. I was also wondering, is there a way to run my vi and have it stop, on its own, when it is finished. Presently it does nothing when it is finished, but the run button stays pressed until the vi times out. Can I avoid this?