Add debug code to parseTags