Slightly reduced redundant code in benchmarks.