Updates attributes