Making it work for multiple metrics