Correctly runs simulations.