Make the filter processing function inline