Used smoothing function for peak finding