Setting shared variable.