Move this to within the model.