Added balanced coloring.