Heap *apparently*  working. Needs to be tested.