Added permission related stuff

Just wrong