Rename and modify printOGTags to extractOGTags