Optimize color changing.