Changed tag structure to main tag and sub tag.