Added a model base class that allows model_* type functions.