Chlorine, pH and flocculation dosing