>>86
Thanks for this. Apparently this thread came back to life right before I made a couple of threads on /g/ and needlessly edited my own version. Yours is far better.
I think the one thing left that has always bothered me is the lame renumbering. "grabxxxx" easily defeats itself. I haven't looked at the code close enough to see if there's a trivial way to do something more elegant.