Added some permission stuff