Added morse/quadratic fitting