Added method restrict() in Metric