Refactor of color code.
Merge branch 'master' into 1.6.4