Add primitive filtering