Initial design of event API.