Update peak_detect