Refactored the stats and made it simpler to print out to the
dump file