Added check for superuser privileges