Initialise globals in the correct AS.