Added color management using map structure.