Add code for benchmark