Renamed maxPeaksDist to max_peaks_dist