Added privilege check