fit_control function

Control the fit function