Extracted the readMix' function