Replace deprecated AddFilter with InsertFilter.