Running the simulation