Update event loop.