First draft of light controller