Added benchmark function