Switch to grep-reduce for filtering