Add a globals object and move accessibility around.