Add event loop