Added fitting function to Turn On Curve