An event handler.