Added setPermission