Sped up the algorithm again.