A couple more changes to the stats script for calculating all stats.