Implemented color switching