Saving simulation results.