Add HEAP_MAX constant