Made output filename logging happen after the successful run; removed diversity termination