Added panic on out of memory errors.