Added maximum-depth pairwise pi calculations