Root detection