Got the simulator working