Fixed bugs in macro for benchmarking (tuning programs)