Added (R,Q) N, P dist., Data length and MAD