This should help with the issue of incomplete files.