I you have the flexibility, you could use a case statement instead of a sequence structure to create a simply state machine. You could use the index to move you through each state and use a boolean array to indicate the status. The index of the loop would index which boolean in the array is active.
The attached screenshot should give you an idea.
>
"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal