Hey Guys, Have a bit of a logic question, I have the following logic in a module that gets enabled and disabled: [CODE]once (GetCBusState("SPR-03 Level B4", "Lighting Panels", "Blues Button") = ON) then begin SetScene("Blue Lights On"); SetCBusState("SPR-03 Level B4", "Lighting Panels", "Works Button", OFF); SetCBusState("SPR-03 Level B4", "Lighting Panels", "LockOut Button", ON); Delay("0:00:02"); SetScene("Whites All Off"); end; once (GetCBusState("SPR-03 Level B4", "Lighting Panels", "Works Button") = ON) then begin SetCBusState("SPR-03 Level B4", "Lighting Panels", "LockOut Button", OFF); SetCBusState("SPR-03 Level B4", "Lighting Panels", "Blues Button", OFF); SetScene("Whites All On"); Delay("0:00:02"); SetScene("Blue Lights Off"); end; [/CODE] My problem being is that if one of the 'Works Button' or 'Blues Button' groups is ON when the module gets enabled it will play that thread. What I would like is for it to have an OFF then an ON before it plays the thread. I tried not disabling the module and using an IF condition over the top but understandably this did the same thing. Would anyone know how I can get around this? Would keeping the module enabled and using if after the once statement be better? As in: [CODE]once (GetCBusState("SPR-03 Level B4", "Lighting Panels", "Blues Button") = ON) then if (GetCBusState("SPR-03 Level B4", "Test", "Blues Enable") = ON) then begin SetScene("Blue Lights On"); SetCBusState("SPR-03 Level B4", "Lighting Panels", "Works Button", OFF); SetCBusState("SPR-03 Level B4", "Lighting Panels", "LockOut Button", ON); Delay("0:00:02"); SetScene("Whites All Off"); end; once (GetCBusState("SPR-03 Level B4", "Lighting Panels", "Works Button") = ON) then if (GetCBusState("SPR-03 Level B4", "Test", "Works Enable") = ON) then begin SetCBusState("SPR-03 Level B4", "Lighting Panels", "LockOut Button", OFF); SetCBusState("SPR-03 Level B4", "Lighting Panels", "Blues Button", OFF); SetScene("Whites All On"); Delay("0:00:02"); SetScene("Blue Lights Off"); end; [/CODE] I would prefer if there was a way to do it with enabling and disabling the modules but if I can't that is ok. Thanks!!