Modified eventloop management.