Improve CheckEvents interface, add event filtering