Added streaming.
added forced write on metrics.