Metric collection, ready for testing.