Added persistence of the model parameters.