Trying to fix memory issue for large files.