Maintaining Water Quality in the Distribution System