Added the filter callback.