Only check once for permissions.
Remove unused import.