Use extend instead of node.extend