Renamed `_setMode` to `_setPermissions`