Restructured bootup and config logic.