Added metrics and benchmarking.