Added rarity cutoff as a parameter to filtering script