Cleaning the fit script