Major changes to chained model run code. Various, should have committed earlier