Use a set instead of a dict