Added getPeaks() Function