Holy crap... Memory limit gallore, I had to make a LOT of optimizations on this one, and it just barely worked...