Global variable declaration refactored.

Such declaration should now be nominally complete, if rather untested.