Added old fitting functions