Resurrection of an old post, sorry.
Anyway.. I'd use this _alot_ if you could get rid of the need for tasks/loops, and the like, as already suggested.
In general, this would make it a whole lot easier to read, and play around with.
__________________