Added check for peak in findPeaks