move all data collection to statistics module.