Added root check