Complete version that runs benchmarks