Control the quality of water