Infrastructure for controlling the event loop is almost ready