Added name kwarg to compute_stats.