Update to support multiple rules