Set globals on sharing stuff.