Added statistic collection.