Do the same modification to filter and output.