Converting to a list here just wastes memory.