Implemented a basic version of the metric manager.