Added event loop.