added metrics analysis.