Add support for anywhere rules

I have addressed this comment, but the change is actually on the next line. So the comment doesn't disappear.