Adding new functions for avg_case data collection