Prevent state from being needlessly set.