Some minor improvements to the bootloader.