Added ability to add events.