This is gross, but we can't do better without access to the mod dll, so we'll have to live with this for now.