Added basic collection. Changed the way the model params are retrieved
and how error setting works.