added code to flash the LED torch