Update comment algorithm.