Removed deprecated method for metrics.