Add mem operation support, used by effects