Some stuff with algorithms.