First draft of EventSource loop.