Added batching and made the node poller (more) non-blocking.