Minor changes to Fit routine