What is the function of heartwood?

It provides support for the tree.
It protects the inside of the tree.
It produces new vascular tissue.
It contains the active xylem.