Use wait_for_emulator script again.