Update attributes.