The flashlight function