Adding pmem stuff