Fitting functionality implemented