Initial version of the simulator.