Wrap Detector class.
Add detector class.