Implement getting mutual information.