Online TTHM analyzers allow plant operations to be varied so that TTHM precursors in the bromoform family are adequately remove while the treatment process is optimized to reduce operating cost.