Event loop library.