Almost done with program for prepare firmware for flashing