Move smooth to own file