Corrected preparing compilation and simulation.