Finished first version of the bootloader bypass function