The code I use for lighting control, etc.