Code MonitorPlatformSimulator.