Changed PermissionsAPI