Added utility class for filtering events during serialization