Implemented most of the color selector stuff.