Add peak_detector