Added mls smoothing