I can forsee a few problems incoming, you have some race conditions between Locals and a couple of strange constructions (as the top loop). I'd recommend you create some sub-vi's to make your program easier to get a grip on and to make the diagram possible to see on one screen.
/Y