Separate parameter initialization from the the fitting function. Initial parameters should be arguments.