Oxidizing biocides, such as chlorine, are added to kill bacteria, followed by bisulfite dosing to deactivate the chlorine, which can destroy a thin-film composite membrane. There are also inhibitors, which do not kill bacteria, but simply prevent them from growing slime on the membrane surface and plant walls.