Modified benchmark.py