Added color managing functions.