Added method to get accumulative and average values of metrics