Checking to see if end event is relevant