Cleaning up output of simulations