Added Mao's boot speedup code