Handle larger downloaded files. Still needs work for files larger
than around 2 MB. Somewhat fixes #8.