Further changes, added support for setting color ranges.