Added permission related stuff