Added metrics output to stdout and log