Added in third parameter for running time