1. No need to have this as a attrset rather than a plain list.
2. No need to iterate over it twice.