Implemented event creation and API