Rationalized the way the color is set.