Added code to write (many, many) control files.