Correction in algorithm.