Moved CIDetector as a static implementation