Implements basic tag checking.