Added support for resumable downloads