Fixed algorithm.