Formatting of detectflash method