Added root checking.