Added Color code checking