Add workaround code for lack of coremod plugin