Add refheap integration