Changed some cases for findPeaks