Implemented more event callbacks.