Added tool running functionality