Different approach to waiting for emulator