FlameDuck, you have an extra Endif at the end of your UnPseudoCode.
LOL! That's what happens when you're not allowed to use squigly brackets. :o> Btw, it is interesting that your code is eerily similar to mine.
I dunno about you, I just did a line by line conversion of the pseudo code. If you did roughly the same, I reckon that would explain it. :o>