Implemented models, updated templates.