Added a few helpers for benchmarking.