Saving metrics to files.  Also fixed a bug with Actor output metric.