Improve global variable initalization.