Added support for resuming files functionality