Almost fixed event loop thing