Added getEventsFor functionality