Cleaned up version of BootManager.Run() function.