Move active var into Totem.mode proprety
Move segments configuration into Totem object