Very rudimentary support for patching to resources.