Initial switch to c-style events api.