Add external rule wrapper.