Adding pre-smoothing option to R interface