Still trying to get memory allocation to work.