Intelligent patch wrapper.