Modified to run automatically for performance benchmarking