This should be called something like SetWarningState?

and needs /// comments