Make sure shared variables and references get set first at init.