Temporarily replace contract pattern with basic event handling for module loading.