Added metrics reporting.