Duplicate tags

New pull request. Old request: #352.