Title: A program generator for control of chemical stocks