The poll function has been changed. We need to change the implementation.