Added writing of FILTER fields to output