Edited `createModel` function to pass the `last` argument to the `modelFit` function.