Global values to control. - adding function.