Add function to collect_statstic_data