Providing proper UI event-loop integration.