Setup the model.