Consider newer remote file
Use resumable download API
Refactored boolean expressions