Add support for module instances.