Added comments on global variables