Added setAttrs() to Model class.