docs: function second_pass(){
  
      // Doesn't matter what personality, we're just using this as the
      // coordinator.
      var glob_manager = _new_manager_by_personality('annotation');
      var glob_funs = [];
  
      // Looking by assigners.
      each(our_assigners_of_interest, function(src){
  
  	// Experimental.
  	glob_funs.push(function(){
  
  	    //  Minimal, only want count.
  	    var manager = _new_totals_manager_by_personality('annotation');
  	    manager.add_query_filter('assigned_by', src);
  	    manager.add_query_filter('evidence_subset_closure_label',
  				     'experimental evidence');
  
  	    manager.register('search', function(resp){
  		glob['annotations']['assigners_with_exp'][src] =
  		    resp.total_documents();
  		// console.log(glob);
  	    });
  
  	    return manager.search();
  	});
  
  	// Non-experimental.
  	glob_funs.push(function(){
  
  	    //  Minimal, only want count.
  	    var manager = _new_totals_manager_by_personality('annotation');
  	    manager.add_query_filter('assigned_by', src);
  	    manager.add_query_filter('evidence_subset_closure_label',
  				     'experimental evidence', ['-']);
  
  	    manager.register('search', function(resp){
  		glob['annotations']['assigners_with_nonexp'][src] =
  		    resp.total_documents();
  		// console.log(glob);
  	    });
  
  	    return manager.search();
  	});
  
  	// // Experimental ann by aspect.
  	// each(['P', 'F', 'C'], function(aspect){
  
  	//     glob_funs.push(function(){
  
  	// 	//  Minimal, only want count.
  	// 	var manager = _new_totals_manager_by_personality('annotation');
  	// 	manager.add_query_filter('assigned_by', src);
  	// 	manager.add_query_filter('evidence_subset_closure_label',
  	// 				 'experimental evidence');
  	// 	manager.add_query_filter('aspect', aspect);
  
  	// 	manager.register('search', function(resp){
  
  	// 	    // Ensure.
  	// 	    var sea = glob['annotations']['assigners_by_aspect_with_exp'];
  	// 	    if( typeof(sea[src]) === 'undefined' ){
  	// 		sea[src] = {};
  	// 	    }
  
  	// 	    sea[src][aspect] = resp.total_documents();
  	// 	    // console.log(glob);
  	// 	});
  
  	// 	return manager.search();
  	//     });
  	// });
  
  	// Experimental publications.
  	// publications.assigners_with_exp : {},
  	glob_funs.push(function(){
  
  	    //  Minimal, only want count.
  	    var manager = _new_facets_manager_by_personality('annotation');
  	    manager.add_query_filter('assigned_by', src);
  	    manager.add_query_filter('evidence_subset_closure_label',
  				     'experimental evidence');
  	    manager.facets('reference');
  
  	    manager.register('search', function(resp){
  
  		// Extract the facet.
  		var ref_facet = resp.facet_field('reference') || [];
  		//console.log('raw_data', raw_data);
  		var ref_count = 0;
  		each(ref_facet, function(datum){
  		    var count = datum[1];
  		    ref_count += count;
  		});
  
  		glob['publications']['assigners_with_exp'][src] = ref_count;
  		// console.log(glob);
  	    });
  
  	    return manager.search();
  	});
  
  	// // Publications by aspect.
  	// // publications.assigners_by_aspect : {},
  	// each(['P', 'F', 'C'], function(aspect){
  
  	//     glob_funs.push(function(){
  
  	// 	//  Minimal, only want count.
  	// 	var manager = _new_facets_manager_by_personality('annotation');
  	// 	manager.add_query_filter('assigned_by', src);
  	// 	manager.add_query_filter('aspect', aspect);
  
  	// 	manager.register('search', function(resp){
  
  	// 	    // Extract the facet.
  	// 	    var ref_facet = resp.facet_field('reference') || [];
  	// 	    //console.log('raw_data', raw_data);
  	// 	    var ref_count = 0;
  	// 	    each(ref_facet, function(datum){
  	// 		var count = datum[1];
  	// 		ref_count += count;
  	// 	    });
  
  	// 	    glob['publications']['assigners_by_aspect'][src] = ref_count;
  	// 	    // console.log(glob);
  	// 	});
  
  	// 	return manager.search();
  	//     });
  	// });
  
      });
  
      // Looking by species.
      each(our_species_of_interest, function(species){
  
  	var lbl = species[0];
  	var sid = species[1];
  
  	// Experimental.
  	glob_funs.push(function(){
  
  	    //  Minimal, only want count.
  	    var manager = _new_totals_manager_by_personality('annotation');
  	    manager.add_query_filter('taxon_closure', 'NCBITaxon:' + sid);
  	    manager.add_query_filter('evidence_subset_closure_label',
  				     'experimental evidence');
  
  	    manager.register('search', function(resp){
  		glob['annotations']['species_with_exp'][sid] =
  		    resp.total_documents();
  		// console.log(glob);
  	    });
  
  	    return manager.search();
  	});
  
  	// Non-experimental.
  	glob_funs.push(function(){
  
  	    //  Minimal, only want count.
  	    var manager = _new_totals_manager_by_personality('annotation');
  	    manager.add_query_filter('taxon_closure', 'NCBITaxon:' + sid);
  	    manager.add_query_filter('evidence_subset_closure_label',
  				     'experimental evidence', ['-']);
  
  	    manager.register('search', function(resp){
  		glob['annotations']['species_with_nonexp'][sid] =
  		    resp.total_documents();
  		// console.log(glob);
  	    });
  
  	    return manager.search();
  	});
  
  	// Okay, a little deeper here. We're going to grab aspect as
  	// well.
  	// glob['annotation']['species_by_aspect_by_evidence'] : {},
  	each(our_evidence_of_interest, function(ev){
  
  	    each(['P', 'F', 'C'], function(aspect){
  
  		glob_funs.push(function(){
  
  		    //  Minimal, only want count.
  		    var manager =
  			    _new_totals_manager_by_personality('annotation');
  		    manager.add_query_filter('taxon_closure', 'NCBITaxon:' + sid);
  		    manager.add_query_filter('aspect', aspect);
  		    manager.add_query_filter('evidence_subset_closure_label', ev);
  
  		    manager.register('search', function(resp){
  
  			// Ensure.
  			var ga = glob['annotations'];
  			var gas = ga['species_by_evidence_by_aspect'];
  			if( typeof(gas[sid]) === 'undefined' ){
  			    gas[sid] = {};
  			}
  			if( typeof(gas[sid][ev]) === 'undefined' ){
  			    gas[sid][ev] = {};
  			}
  
  			// Finally, add.
  			gas[sid][ev][aspect] = resp.total_documents();
  		    });
  
  		    return manager.search();
  		});
  
  	    });
  	});
  
      });
  
      // Looking by evidence.
      each(our_evidence_of_interest, function(ev){
  
  	// ...
  	glob_funs.push(function(){
  
  	    var manager = _new_totals_manager_by_personality('annotation');
  	    //  Minimal, only want count.
  	    manager.add_query_filter('evidence_subset_closure_label', ev);
  
  	    manager.register('search', function(resp){
  		glob['annotations']['evidence'][ev] =
  		    resp.total_documents();
  	    });
  
  	    return manager.search();
  	});
  
      });
  
      ///
      /// Runner.
      ///
  
      var fun_count = 0;
      var total_funs = glob_funs.length;
      glob_manager.run_promise_functions(glob_funs, function(resp, man){
  	fun_count++;
  	console.log(fun_count + ' of ' + total_funs);
      }, function(man){
  	// Dump to file.
  	console.log(JSON.stringify(glob, true, 3));
  	fs.writeFileSync('./perl/bin/amigo-base-statistics-cache.json',
  			 JSON.stringify(glob));
      }, function(err, man){
  	// No error code.
      });
  
  }