Chemical composition is analysed to adjust purification parameters.