Added proper set_attribute wrapper.