Custom malloc implemented. Not yet tested.