1-dimensional fit now working.