Clean white algorithm.