That's incredible! And the best part is that the code is really quite understandable. It just happens to contain some extremely clever ideas put together in an elegant manner :-) Sean