Providing a simple algorithm.