Bounds checking for the events.