Commented smooth function