Create statistics_generator