Smoothness working

Revised smoothness method working (adjustable in variable declaration)