Add smoothing option to api