Added complex stateChange conditions to DemoGUI.
(Untested).