Changed color changing logic.