Make setTagInfo() in main.