Update simulator.m