Excellent. Glad to hear it works for you.
I wouldn't say you were 'way off' but you definitely painted yourself into a corner.
Bummer though, I didn't even think to add comments to it. Sorry about that. ): If you have any questions I'll try my best to explain.