Added getChildren to readstatement