More work on the nonlinear regression code.