Implement generic tag functionality