Finds the applicable rule on first run.