UPdate to the algorithm.