Got it to the point that it can find rules