Add auto rule detector