Improved stable heap interface.

Now it exposes all needed functionalities.