Add rootFailed logic