Implemented custom events.