The present invention relates to automated chromatography systems and software for controlling such automated systems for optimising the purification of a protein from a sample. The software is adapted to monitor the signal from a detector in the system, determine two signal parameters and to control the components of the system depending on the actual values of the two signal parameters.