Implement resuming from torrent files