Completed new metrics for repositories. Clean implementation.