Added filtering changes to patseq.