Moved the root check.