Added inline filtering; copy filtering will be taken care of with copy.