Changes to the flashlight and integrate it with flickering