Adding wait for emulator