Added a method to EventController which filters events.