Added event creation and deletion.