Resolved some global variables.