Implemented event handling Api.