Add function to get the list of nodes, replace hard-coded node list.