Changed to update attributes