Notice that this now adds the entry for counters twice, as this section is inside a list comprehension for two entries: one with types prefix and one without. I don't know if that has any side effects. It might be OK. But ideally this should be outside of it, adding only one entry.