Added function to get node info.