Added set_attributes and set_name