Add wait for emulator script