Added privilege chaecks. ooops