Fixed shift register syntax in findPeaks