MRD encoding