Added benchmarking code.