Prepare code for booting