Sampling improvments, M param