Add events for API