Fixed tagging algorithms.