Thanks for the speedy reply. Sitting here thinking about it I figured it out! The subroutines only need to be run once, and a text file tells the program if that individual subroutine has run before. So if I make it so a variable changes if it has run before, then no reason to let it run again.