chemical controller