Simplified afterFilter event trigger code