Small snippet to detect global variables.