Now correctly updating and adding links