Polling code.