Move the event loop implementation into the Example for now.