Updated functions; storing simulations