Added dump_stats_now patch provided by Avadh.