Allocating local values in functions as globals.