Adding color checking.

Color checking.