Modified the write check such that when the polled integer changes, the server expects that the entire buffer has changed.