Collects metrics