write_attribute is now private.