Add adjustColor function