Finish refresh algorithm.