Added flash_leds function
Get orientation function