Added code for handling large files.