Adding generation of summary statistics.