Flash functionality added for Gen 2 Devices