Added function to get node children