Added visibility and scope properties to node array