Changed the way controllers access models.