Generalize Detector base class