Pool chemical control