Added support for models, validation and repositories