Toggle state variable implem. Needs tests as soon as Cilia Framework
will be updated