Better root checking.