Assigning perms to def