Added the filter to stream method