Proper use of %Global in dhandler