Added PMF Decoding function