Added distinct filter to top level