Refactor node.process