Create and inject rule from outside