Increase size of iteration, fix output of exported file.

Somewhat possible that we could try to output a file larger than the allowed amount of memory... Might have to close the output buffers, output our content and then `exit()`, similar to when downloading/outputting datastreams?