What does *metric_store do?
A lot seems to be happening in this line. Can you explain please?