Add wrap_remote.

Please review, thanks.