Added conditional for children.