Add get_attribute interface