DiffDetector custom implementation