Added support for resuming broken downloads.