Non-linear least-squares fit.