Finalize file size limit functionality (fixes #11).