Made the color mapper more generic.