Added the option to use a smoother.