Update to the sweeper algorithm.