Add GetPeaks source code