Use list comprehension, not a generator