Automatic nitrate removal system - flow diagram