Added uniquefilter when working with arrays