Use a dictionary for tags instead of a list.