Implement the poller event loop