Implement iteratively widening distance criterion, fixes to tag creation