More flexible stat summarizing.