Added best color detection