Added heapGenerator