Improving the Add Tag Algorithm.