Change init_transport to add_remote_objects, so that it can be called many times from different places.