A method of controlling a chemical clean of a membrane comprising: increasing the amount of chemical cleaning agent present during the clean; measuring membrane resistance of a membrane for at least a portion of said clean; ceasing the increase in chemical cleaning agent when membrane resistance attains a predetermined value.