Initial Heap Monitor Code