Generation and sorting of children when in low number among other things