Define `var $node` to avoid globals.