Add Heap support.

we'll maybe just add this to the prototype until there are actually multiple functions using it