Starting on Zaidel problem. Need to add smoothing function.