New heap API.
Docs updated.