Collecting the metrics