It's really slow. I'm going to try to use a smarter algo.