Fix: Change kludge to a time-limited event loop.