Added support for global node (*) directly. Now it loops through all
possible global nodes for a given node. Much easier in the end!