Added light controller to control flickering