Updated streamsample and filterstream