Added functions for color manipluation