JM Codec modified for researching