Detect not only in root