Changed how data was processed (using yeild instead of return) so that the process would not use as much memory.