A lot of permissions stuff