New coloring algorithm.