Added bare-bones early memory allocation