Working on event handling.