Closes #19: Make sure we call set_state any time 'state' is a boolean.

Change-Id: Ibc1d6ed1ce29fec30cb645c18e774d74c0961605