Coarse implementation of tagging (completely redesigned)