Add filter with script for diversity metrics