Revert 20deae2. Will need to be refactored to accommodate large files.

This reverts commit 20deae23d4b678554cd2cbdcf760cb57bc4319c0.