Add a little bit of debugging to my event loop, though it doesn't seem to be helping much