It's probably better to use a `defaultdict`.