Added progress bar to generate_examples using RunProgress