Implemented pollForChanges.