Add support for addmod to mri scripts.