Refactor determine method
Slight refactor of increment_metric_value method