Added event-loop facility.