Docstring implies this returns a list but is actually a generator