Added analyzeColors