Changed the minimum number of peaks