Adding heapalloc injection method