Update polling code.