Add checking of n value being returned by mantel