Added simulation code ready for interval simulation.