Select until root implemented