Changed the flash detection library.