Added torrent session level code