Fixed a bug. Added a few benchmarks.