Added stack-based benchmarking