Conversion of RMF to Pattern masking