Updated DoLight function to work for lights in ceiling