Adding smooth finite differencing routine.