Added gui.AG_EventLoop