Remove uses of deprecated APIs in remote module
Add sendToHost method