Move from global keyword to $GLOBALS superglobals