Modified findPeaks2 to track actual sums