Restoring functions in TorrentUtil.