@arokem when you profiled the function was leastsq the most heavy computation?