Initialize global variables.