08-14-2012 07:18 PM
Consider converting to a state machine. You probably only need one loop or maybe two in parallel.
Lynn