Modisfications to get_children to make retrun values more consistent