Added model definitions, base templates.