Replaced tag update code