Mostly working bootloader