Edit createModel function to pass last argument to other functions.