Resume now works well. Tested on large file.