...and half of the time still doesn't do what you want.
And the "final version" statement. Irrelevant as obviously it has no idea how many iterations you'll go through
And the "final version" statement. Irrelevant as obviously it has no idea how many iterations you'll go through