Event handlers on server.