First versions of read_attribute and write_attribute.