I gave your code a shot, and it worked great! My script took 13 minutes to run, which is a lot better than before, when it would die from lack of memory. Thanks a lot! Cedar