Added filter option to set which metric we want to keep.