Search paths calculation moved to reset()
manage_children() optimization backported