Getting things ready for simulation.