Move EventLoop to a separate file.