Added option for allowing defined globals