Added useless perms check.