Add smooth option to function pipe