Code for doing performance runs with